import React from "react";
import useOnlineStatus from "./hooks/useOnlineStatus";

const StatusBar: React.FC = () => {
  const isOnline = useOnlineStatus();

  return <h1>{isOnline ? "✅ Online" : "❌ Disconnected"}</h1>;
};
export default StatusBar;
